<template>
  <el-tooltip
    class="box-item"
    effect="dark"
    :content="content"
    placement="top"
  >
    <el-button v-bind="attrs" />
  </el-tooltip>
</template>

<script lang="ts" setup>
// element-ui   用于vue2
// element-plus 用于 vue3
// import {  Delete } from '@element-plus/icons-vue'
import { useAttrs } from 'vue'
const attrs = useAttrs(); // 绑定的所有属性

defineProps<{
  content: string
}>()

console.log(attrs)
</script>

<style lang="less" scoped>

</style>
